# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=redpoint
pkgver=123.23ef36b
pkgrel=2
groups=('blackarch' 'blackarch-misc')
pkgdesc="Digital Bond's ICS Enumeration Tools."
arch=('any')
url='https://github.com/digitalbond/Redpoint3'
license=('custom:unknown')
depends=('nmap')
makedepends=('git')
source=("$pkgname::git+https://github.com/digitalbond/Redpoint.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 644 -t "$pkgdir/usr/share/nmap/scripts/$pkgname/" *.nse
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

